<!-- 基础信息 -->

<template>
  <div>
    <MajorTitle title="基础信息" />

    <EasyRow col2>
      <FormTime label="产生时间" bind="generateTime" disabled />
      <FormRadio label="事件等级" bind="eventLevelCode, eventLevelName" :dict="DICT.LEVEL" initFirst />
    </EasyRow>

    <EasyRow col2>
      <FormTree :label="`所在${CORE.MAP.REGION}`" bind="areaId, areaName" :dict="CORE.REGION.DICT" allName required />
      <FormSelect label="事件类型" bind="eventTypeId, eventTypeName" :dict="CORE.DICT.preplan_type" initFirst />
    </EasyRow>

    <FormTextarea label="事件详情" bind="detail" :rows="[2, 5]" />

    <FormImage bind="imageList" folder="emergency" :limit="3" />

    <EasyRow col3>
      <FormVideo bind="videoList" folder="emergency" :limit="1" />
    </EasyRow>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyBase',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb(), CORE.mixSelect('preplan', 'preplan_')],
}
</script>
